package com.atguigu.eduservice.toming;

/**
 * @ClassName IdCardDesensitization
 * @Description: TODO
 * @Author: NeySun
 * @Create: 2022-10-31 14:28
 * @Version 1.0
 **/
public class IdCardDesensitization extends AbstractDesensitization {

    @Override
    public String serialize(String value) {
        return value.replaceAll("(?<=\\w{3})\\w(?=\\w{4})","*");
    }

}
